console.log('In Child.js')
// If the send method is available
if(process.send) {
  
    // Send Hello
    process.send("ready");
}
// var querystring = require('querystring');
// var result = querystring.parse('@[222]','@');

// console.log(result);
// var result1 = querystring.stringify({foo:'bar',cool:['xux', 'yys']},'*','$');
// console.log(result1);
// const uuid= require('uuid');


// console.log(uuid.v1());
// console.log(uuid.v4());
var querystring = require('querystring');
var str = "##124##125##126^你好啊";
var result = querystring.parse(str,'##',':');
for(key in result){
    console.log("key:"+key+",value:"+result[key]);
}
const read=str.split("^");
const users=read[0];
const msg=read[1];
console.log('users:'+users);
console.log('msg:'+msg);
console.log(result);
var arr = str.split("##").map(function (val) {
  return val
});
const c1 = str.search('##');
console.log(c1);
if(str.startsWith('##')){
   console.log("charAt:"+str.charAt(str.indexOf('##')));
   console.log(str.substring(str.indexOf('##')+2,5));
}
console.log(arr.length);
console.log(JSON.stringify(arr) );
s = "Hello World!";
let c = s.includes('o');

console.log(c);